<script type="text/javascript">

alert("This is alert Message")

document.write("This message will show on browser");

console.log("This message will appear in Firebug Console.Press F12 to check this message");
</script>

<a href="#" onClick="return confirm('Are you sure?')">Delete</a>